package com.hqd.ch03.v40.web.multipart;

import com.hqd.ch03.v40.web.http.HttpHeaders;
import com.hqd.ch03.v40.web.http.HttpMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * http上传请求
 */
public interface MultipartHttpServletRequest extends HttpServletRequest, MultipartRequest {
    /**
     * 获取请求方法
     *
     * @return
     */
    HttpMethod getRequestMethod();

    /**
     * 获取请求头
     *
     * @return
     */
    HttpHeaders getRequestHeaders();

    /**
     * 获取上传请求头
     *
     * @param paramOrFileName
     * @return
     */
    HttpHeaders getMultipartHeaders(String paramOrFileName);

}
